WooCommerce\Square\Gateway\Digital_Wallet D

Total Complexity 179
Dependencies 10
Dependents 1
Total lines 1,037
Lines of code 615
Logical lines of code 322
Comment lines 268
Methods 30
Properties 3

Methods 30

Method Rating Maintainability Complexity Lines of code
get_product_payment_request()
A
42 14 47
apple_pay_domain_registration()
A
50 12 25
ajax_recalculate_totals()
A
41 9 58
allowed_for_product_page()
A
52 11 22
init()
A
56 11 16
register_apple_pay_domain()
A
47 9 33
allowed_for_cart()
A
56 10 15
build_payment_request_line_items()
A
45 8 43
ajax_get_payment_request()
A
52 9 21
check_apple_pay_verification_file()
S
51 7 27
build_payment_request()
S
47 6 34
is_available_for_page()
S
60 7 12
calculate_shipping()
S
48 5 32
get_payment_request_for_context()
S
58 6 16
admin_notices()
S
50 5 31
get_current_page()
S
64 7 8
__construct()
S
57 6 15
enqueue_scripts()
S
47 4 34
ajax_add_to_cart()
S
54 5 18
render_button()
S
51 3 27
get_hidden_button_options()
S
67 4 7
is_available()
S
70 4 6
get_option_is_apple_pay_enabled()
S
69 3 6
ajax_process_checkout()
S
64 3 10
update_shipping_method()
S
65 3 9
get_cart_totals()
S
61 2 12
is_digital_wallet_enabled()
S
78 2 3
apple_pay_verification_file_location()
S
76 2 3
supported_product_types()
S
62 1 14
get_available_pages()
S
65 1 11